/*Filtres Model*/
function FicheManagerModel ($http) {

	function FicheManager(FiltresData) {
		if(FiltresData){
			this.setData(FiltresData);
		}
	};
	FicheManager.prototype = {
		get_images_galerie: function( $sejourId ) {
			var promise = $http.get("/application/detailssejour/retournegalerieimages?id=" + $sejourId)
				.success(function (data, status, headers, config) {
					return data;
				})
				.error(function (data, status, headers, config) {
					return {"status": false};
				});
		
			return promise;
		},
		get_coordonnees_gmap: function( $sejourId ) {
			var promise = $http.get("/application/detailssejour/retournecoordonneesgmap?id=" + $sejourId)
				.success(function (data, status, headers, config) {
					return data;
				})
				.error(function (data, status, headers, config) {
					return {"status": false};
				});
		
			return promise;
		},
		retourner_adresse_page_redirection: function( $sejourId ) {
			var promise = $http.get("/application/detailssejour/retourneadressepageredirection?id=" + $sejourId)
				.success(function (data, status, headers, config) {
					return data;
				})
				.error(function (data, status, headers, config) {
					return {"status": false};
				});
		
			return promise;
		},
		envoyer_commentaire_contact: function( datas ) {
			var promise = $http.post("/application/detailssejour/envoyercommentairecontact", datas)
				.success(function (data, status, headers, config) {
					return data;
				})
				.error(function (data, status, headers, config) {
					return {"status": false};
				});
		
			return promise;
		},
	};
	return FicheManager;
}
